package com.siruier.boss.ui.bean.picker;

import android.os.Parcel;
import android.os.Parcelable;

public class BaseCityBean implements Parcelable {
    private String code = "";
    private String name = "";

    public BaseCityBean() {
    }

    public BaseCityBean(String code, String name) {
        this.code = code;
        this.name = name;
    }

    protected BaseCityBean(Parcel in) {
        code = in.readString();
        name = in.readString();
    }

    public static final Creator<BaseCityBean> CREATOR = new Creator<BaseCityBean>() {
        @Override
        public BaseCityBean createFromParcel(Parcel in) {
            return new BaseCityBean(in);
        }

        @Override
        public BaseCityBean[] newArray(int size) {
            return new BaseCityBean[size];
        }
    };

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(code);
        dest.writeString(name);
    }
}
